package com.v2.k48;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 测试@Autowired修饰在set方法上
 */
public class Test {

	public static void main(String[] args) {

		ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring-k48.xml");
		Student student = (Student) applicationContext.getBean("student");
		System.out.println(student);
		System.out.println(student.pers);
		System.out.println("======");
		System.out.println(applicationContext.getBean("person"));
	}

}
